module.exports=app=>{
    const{router,controller}=app;
    router.get("/adminInfo/index",controller.adminInfo.index);
    router.get("/adminInfo/list",controller.adminInfo.list);
    router.get("/adminInfo/addAdminInfo",controller.adminInfo.addAdminInfo);
    router.post("/adminInfo/doAddAdminInfo",controller.adminInfo.doAddAdminInfo);
    router.get("/adminInfo/checkAdminId",controller.adminInfo.checkAdminId);
    router.get("/adminInfo/logOut",controller.adminInfo.logOut);

    router.get("/categoryInfo/list",controller.categoryInfo.list);
    router.get("/categoryInfo/addCategoryInfo",controller.categoryInfo.addCategoryInfo);
    router.post("/categoryInfo/doAddCategoryInfo",controller.categoryInfo.doAddCategoryInfo);
    router.get("/categoryInfo/editCategoryInfo/:categoryid",controller.categoryInfo.editCategoryInfo);
    router.post("/categoryInfo/doEditCategoryInfo",controller.categoryInfo.doEditCategoryInfo);
    router.get("/categoryInfo/deleteCategory",controller.categoryInfo.deleteCategory);

    router.get("/goodsInfo/addGoodsInfo",controller.goodsInfo.addGoodsInfo);
    router.post("/goodsInfo/doAddGoodsInfo",controller.goodsInfo.doAddGoodsInfo);
    router.get("/goodsInfo/list",controller.goodsInfo.list);
    router.get("/goodsInfo/deleteGoodsInfo",controller.goodsInfo.deleteGoodsInfo);
    router.get("/goodsInfo/editGoodsInfo/:goodsid",controller.goodsInfo.editGoodsInfo);
    router.post("/goodsInfo/doEditGoodsInfo",controller.goodsInfo.doEditGoodsInfo);

    router.get("/customerInfo/list",controller.customerInfo.list);
    router.get("/customerInfo/register",controller.customerInfo.register);
    router.get("/customerInfo/getVCode",controller.customerInfo.getVCode);
    router.get("/customerInfo/checkVCode/:vcode",controller.customerInfo.checkVCode);
    router.post("/customerInfo/doRegister",controller.customerInfo.doRegister);
    router.get("/customerInfo/checkCustomerName/:customername",controller.customerInfo.checkCustomerName);
    router.get("/customerInfo/login",controller.customerInfo.login);
    router.post("/customerInfo/checkLogin",controller.customerInfo.checkLogin);
    router.get("/customerInfo/sendMail/:mailAddr",controller.customerInfo.sendMail);
    router.post("/customerInfo/doSendMail",controller.customerInfo.doSendMail);

    router.get("/home/index",controller.home.index);
    router.get("/",controller.home.index);
}